﻿using SBlogCore.Common.CacheExtend.Attributes;

namespace SBlogCore.Application.Demo.IServices
{
    /// <summary>
    /// 
    /// </summary>
    public interface IDemoService
    {
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        Task<string> HelloDemo();

        /// <summary>
        /// 
        /// </summary>
        /// <param name="age"></param>
        /// <param name="name"></param>
        /// <param name="ok"></param>
        /// <returns></returns>
        [ServiceAopCache()]
        string HelloDemoAop(int age, string name, bool ok);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="age"></param>
        /// <param name="name"></param>
        /// <param name="ok"></param>
        /// <returns></returns>
        [ServiceAopCache()]
        Task<string> HelloDemoAopAsync(int age, string name, bool ok);
    }
}
